package com.base.interview.devtest.model;

import com.base.interview.devtest.constants.ResponseCodeEnum;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ResponseModel {
    private String code;
    private Object data;
    private String msg;

    public static ResponseModel success(Object data) {
        return ResponseModel.builder()
                .code(ResponseCodeEnum.SUCCESS.code)
                .msg("Success")
                .data(data)
                .build();
    }
}
